//
//  XDFilterViewTCell.m
//  kabu
//
//  Created by XiangDongMBP on 2017/2/7.
//  Copyright © 2017年 East. All rights reserved.
//

#import "XDFilterViewTCell.h"

@implementation XDFilterViewTCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
    UIColor *maskColor = self.cellMaskColor ? self.cellMaskColor : [UIColor colorWithWhite:0 alpha:0.2];
    self.centerLabel.backgroundColor = selected ? maskColor : [UIColor clearColor];
}

- (void)setCellBgColor:(UIColor *)cellBgColor {
    _cellBgColor = cellBgColor;
    if (cellBgColor) {
        self.contentView.backgroundColor = cellBgColor;
    }
}

@end
